//药品管理---------------------------

import Medicine from '@/views/Medicine'
import MedClassify from '@/views/Medicine/MedClassify'
import MedInventory from '@/views/Medicine/MedInventory'
import MedManage from '@/views/Medicine/MedManage'


export default
[
    {
        path: '/medicine',
        name: 'medicine',
        meta:{
          title:"药品管理"
        },
        component: Medicine,
        children:[
          {
            path: 'medManage', 
            name: 'medManage',
            meta:{
              title:"药品管理"
            },
            component: MedManage,
            children:[
              
            ],

          },
          {
            path: "/home1",
            meta: {
              title: "药品管理",
            },
            component: () =>
              import(
                /* webpackChunkName: "about" */ "../views/Medicine/MedManage/home.vue"
              ),
          },
          {
            path: "addMed",
            name: "addMed",
            meta: {
              title: "添加药品",
            },
            component: () =>
              import(
                /* webpackChunkName: "about" */ "../views/Medicine/MedManage/addMed.vue"
              ),
          },
          {
            path: "editMed",
            name: "editMed",
            meta: {
              title: "编辑药品",
            },
            component: () =>
              import(
                /* webpackChunkName: "about" */ "../views/Medicine/MedManage/editMed.vue"
              ),
          },
          {
            path: 'medClassify', 
            name: 'medClassify',
            meta:{
              title:"药品分类"
            },
            component: MedClassify,
            children:[]
          },
          {
            path: "addClass",
            name: "addClass",
            meta: {
              title: "添加分类",
            },
            component: () =>
              import(
                /* webpackChunkName: "about" */ "../views/Medicine/MedClassify/addClass.vue"
              ),
          },
          {
            path: "editClass",
            name: "editClass",
            meta: {
              title: "编辑分类",
            },
            component: () =>
              import(
                /* webpackChunkName: "about" */ "../views/Medicine/MedClassify/editClass.vue"
              ),
          },
          {
            path: "addDefaultClass",
            name: "addClass2",
            meta: {
              title: "增加分类",
            },
            component: () =>
              import(
                /* webpackChunkName: "about" */ "../views/Medicine/MedClassify/addClass2.vue"
              ),
          },
          {
            path: 'medInventory', 
            name: 'medInventory',
            meta:{
              title:"药品库存"
            },
            component: MedInventory,
            children:[
              // {
              //   path: "/",
              //   name: "inventoryIndex",
              //   meta: {
              //     title: "药品库存",
              //   },
              //   component: () =>
              //     import(
              //       /* webpackChunkName: "about" */ "../views/Medicine/MedInventory/home.vue"
              //     ),
              // },
            ]
          },
        ]
      },
      
]